#ifndef _INVLALID_SCHEMA_H_
#define _INVLALID_SCHEMA_H_

#include "/usr/include/mysql/mysql.h"
#include "schema_manager.h"
#include <list>
using namespace std;



struct url_t;

struct invalid_schema_t
{
	bool quit;
	list<table_op_t*> table_ops[INVALID_SCHEMA_THREAD_COUNT];
	pthread_mutex_t lockers[INVALID_SCHEMA_THREAD_COUNT];
	pthread_cond_t conds[INVALID_SCHEMA_THREAD_COUNT];
};

int init_invalid_schema(invalid_schema_t& invalid_schema);
void quit_invalid_schema(invalid_schema_t* invalid_schema);

int add_to_invalid_schema(void* url);//url_t*  
int remove_from_invalid_schema(void* url); //url_t*
int exist_in_invalid_schema(void* url); //url_t*

extern invalid_schema_t g_invalid_schema;

#endif

